#include <string>
using namespace std;
class Solution {
public:
    string removeTrailingZeros(string num) {
        num.erase(num.begin() + 1 + num.find_last_not_of('0'), num.end());
        return num;
    }
};